package com.sf.bank.dao;

import com.sf.bank.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {//extends com.github.abel533.mapper.Mapper<UserInfo>{

    @Select("select * from user where name like '%${value}%'")
    public List<UserInfo> queryUserByName(String name);

    // 使用UserMapper.xml配置文件
    public List<UserInfo> queryAll();

    public int insertUserInfo(UserInfo userInfo);

    public List<UserInfo> userAuthLogin(UserInfo userInfo);
}

